-- GENERATED SPELL FOR [Shattered Hand Legionnaire] --


function spell0_16700(pUnit, Event) --@Aura of Discipline,Self--
pUnit:FullCastSpellOnTarget(30472,pUnit)
pUnit:RegisterEvent('Sorts_16700', 587, 1)
end

function spell1_16700(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(30485,pUnit)
pUnit:RegisterEvent('Sorts_16700', 590, 1)
end

function spell2_16700(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(15615,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16700', 5265, 1)
end

function Sorts_16700(pUnit, Event)
local choix_sorts_16700 = math.random(0, 2)
if choix_sorts_16700 == 0 then
pUnit:RegisterEvent('spell0_16700', 1, 1)
end
if choix_sorts_16700 == 1 then
pUnit:RegisterEvent('spell1_16700', 1, 1)
end
if choix_sorts_16700 == 2 then
pUnit:RegisterEvent('spell2_16700', 1, 1)
end
end

function mob16700_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16700', math.random(1500, 3000), 1)
end

function mob16700_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16700_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16700_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16700, 1, 'mob16700_Action')
RegisterUnitEvent(16700, 2, 'mob16700_Leave')
RegisterUnitEvent(16700, 3, 'mob16700_Kill')
RegisterUnitEvent(16700, 4, 'mob16700_Die')
